// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "WorldEntityPart.h"

class FWorldJunction;

/**
 * An entity of a junctionGroup/junctionReference.
 */
class FWorldJunctionReference : public FWorldEntityPart
{

public:

	using Ptr = std::shared_ptr<FWorldJunctionReference>;
	using Super = FWorldEntityPart;

	FWorldEntityReference< FWorldJunction >	Junction;

public:

	FWorldJunctionReference();
	FWorldJunctionReference(FWorldEntityPart* parent, const pugi::xml_node& elem);
	~FWorldJunctionReference() override;

	void Resolve(FWorldEntityReferencing& referencing) override;

	WORLD_ENTITY_META_DECLARE(FWorldJunctionReference)

};
